export default {
  methods: {
    add: function(url = this.addUrl) {
      return this.request({
        url,
        method: 'get'
      })
    },
    deploymentModel: function(params, url = this.deploymentModelUrl) {
      return this.request({
        url,
        method: 'get',
        params
      })
    },
    delete: function(params, url = this.delUrl) {
      return this.request({
        url,
        method: 'get',
        params
      })
    },
    export: function(params, url = this.exportUrl) {
      return this.request({
        url,
        method: 'get',
        params
      })
    },
    import: function(data, url = this.importUrl) {
      return this.request({
        url,
        method: 'post',
        headers: {
          'Content-Type': 'multipart/form-data'
        },
        data
      })
    }
  }
}
